package com.numberone.master.modules.task;


import com.numberone.master.common.tool.BeanUtil;
import com.numberone.master.modules.orders.web.WithdrawalsOrderController;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;


@Component("handleYunzhuangHuOrder")
public class HandleYunzhuangHuOrder extends QuartzJobBean {

    private Logger logger= LoggerFactory.getLogger(getClass());


    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        logger.info("------修改物联网卡提现开始--------------");
        WithdrawalsOrderController controller= BeanUtil.getBean(WithdrawalsOrderController.class);
        controller.queryYunzhuangHuOrder();
        logger.info("------修改物联网卡提现成功--------------");
    }
}
